<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='重置设备')" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/BasicInfo/resetDevice.css}" rel="stylesheet" />
<body class="">
	<div class="main-content blank_bg">
		<div>
			<div>
				<div class="row" style="margin: 10px;">
					<div class="">
						<div style="margin-bottom: 5px;">
							<div style="float:left">
								<span class="spanCss">设备名称：</span> 
								<input type="text" id="fName" name="fName" class="form-control clean_C" style="width: 200px; margin-right: 10px;" /> 
							</div>
							<div style="float:left">
								<span class="spanCss">设备运行状态：</span>
								<select name="fRunStatus" id="fRunStatus" class="selectpicker clean_C " data-width="auto">
									<option value="" selected="selected">全部</option>
									<option value="0">未开工</option>
									<option value="1">已开工</option>
								</select>
							</div>
							<div style="float:left">
								<button id="query" class="btn btn-default " type="button" style="margin-left: 10px;">查询</button>
								<button type="button" class="btn btn-default " id="resetting">重置</button>
							</div>
							<div style="clear:both"></div>
						</div>
						<div>
							<table id="deviceTable" class="table dataTable table-hover"></table>
						</div>
					</div>
					
					<!-- 派工信息模态框 start -->
					<div class="modal fade " id="dispatchingModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
						<div class="modal-dialog" style="width: 860px; height: 220px;margin-top: 15px;">
							<div class="modal-content" style="width: auto;">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
									<h4 class="modal-title" id="titleModal">派工信息</h4>
								</div>
								<div class="modal-body" style="height: auto; padding: 10px;">
									<form id="dispatchingForm" class="">
										<div style="display: inline-block;overflow: hidden;margin-right: 15px;" id="">
											<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="" style="width: 800px;">
												<tr class="bzzy">
													<td class="title" style="width: 120px;"><span class="sub">批次：</span></td>
													<td colspan="" style="width: 250px;"><input type="text" id="dispatchingfBatchNo" name="fBatchNo" class="clean_c form-control" readonly="readonly"></td>
													<td class="title" style="width: 120px;"><span class="sub">销售单号：</span></td>
													<td colspan=""><input type="text" id="dispatchingfSEOrderNo" name="fSEOrderNo" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">生产任务单：</span></td>
													<td colspan="">
														<input type="text" id="dispatchingfBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly">
														<input type="hidden" id="dispatchingfIcmoId" name="fIcmoId" class="clean_c form-control" readonly="readonly">
													</td>
													<td class="title"><span class="sub">派工单号：</span></td>
													<td colspan=""><input type="text" id="dispatchingfCode" name="fCode" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">产品名称：</span></td>
													<td colspan=""><input type="text" id="dispatchingfName" name="fName" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">产品代码：</span></td>
													<td colspan=""><input type="text" id="dispatchingfNumber" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">规格型号：</span></td>
													<td colspan="3"><input type="text" id="dispatchingfModel" name="fModel" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">本道工序号：</span></td>
													<td><input type="text" id="dispatchingfOperSN" name="fOperSN" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">本道工序：</span></td>
													<td><input type="text" id="dispatchingfOper" name="fOper" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">本道加工说明：</span></td>
													<td colspan="3"><input type="text" id="dispatchingfNote" name="fNote" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr class="bzzy">
													<td class="title"><span class="sub">上道加工说明：</span></td>
													<td colspan="3"><input type="text" id="dispatchingfUpOperNote" name="fUpOperNote" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr class="bzzy">
													<td class="title"><span class="sub">下道加工说明：</span></td>
													<td colspan="3"><input type="text" id="dispatchingfNextOperNote" name="fNextOperNote" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">本道车间：</span></td>
													<td colspan=""><input type="text" id="dispatchingfDepName" name="fDepName" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">加工数量：</span></td>
													<td><input type="text" id="dispatchingfTargetQty" name="fTargetQty" class="clean_c form-control" readonly="readonly"></td>
													<!-- <td class="title"><span class="sub">设备：</span></td>
													<td colspan=""><input type="text" id="dispatchingfMacName" name="fMacName" class="clean_c form-control" readonly="readonly"></td> -->
												</tr>
												<tr>
													<td class="title"><span class="sub">开工时间：</span></td>
													<td><input type="text" id="dispatchingfStartTime" name="fStartTime" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">完工时间：</span></td>
													<td><input type="text" id="dispatchingfEndTime" name="fEndTime" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr class="bzzy">
													<td class="title c"><span class="sub">定额：</span></td>
													<td class="bzzy"><input type="text" id="dispatchingfPieceRate" name="fPieceRate" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr class="bzzy">
													<td class="title"><span class="sub">定额折扣：</span></td>
													<td><input type="text" id="dispatchingfDiscountPieceRate" name="fDiscountPieceRate" class="clean_c form-control" readonly="readonly">%</td>
													<td class="title"><span class="sub bzzy">实际需完成数：</span></td>
													<td><input type="text" id="dispatchingfDiscountQty" name="fDiscountQty" class="clean_c form-control bzzy" readonly="readonly"></td>
												</tr>
												<tr class="bzzy">
													<td class="title"><span class="sub">备注：</span></td>
													<td colspan="3"><input type="text" id="dispatchingfIcmoNote" name="fIcmoNote" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr class="bzzy">
													<td class="title"><span class="sub">摘要：</span></td>
													<td colspan="3"><input type="text" id="dispatchingfExplanation" name="fExplanation" class="clean_c form-control" readonly="readonly"></td>
												</tr>
											</table>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
					<!-- 派工信息模态框 end -->
				</div>
			</div>
		</div>
	</div>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<div th:include="base :: others" />
	<script th:src="@{js/BasicInfo/resetDevice.js}"></script>
</body>
</html>
